package com.qf.stu.application;

import com.qf.stu.feign.ClsRemote;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;

//@RestController
//@RequestMapping("/stu")
//@RefreshScope//配置中心的属性实时刷新
public class StuController {

    @Autowired
    private ClsRemote clsRemote;

    @RequestMapping("/insert")
    public String insert(){
        System.out.println("新增学生....");

        //新增班级
        String result = clsRemote.insert();
        System.out.println("远程调用班级服务的结果：" + result);

        return "succ";
    }
}
